]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
osdWindow: Don't call enable_unredirection on startup
authorAdel Gadllah <adel.gadllah@gmail.com>
Tue, 18 Jun 2013 20:43:25 +0000 (22:43 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Tue, 18 Jun 2013 20:47:15 +0000 (22:47 +0200)
This is wrong because it is already enabled. So move this
to out of reset, which gets called from _init().

js/ui/osdWindow.js

index 340702ae87d6d0304cc8104079f96eb239a5a6cd..7d9510dbb7a8a091cacd034aeffa098de9d9afc4 100644 (file)
@@ -167,14 +167,16 @@ const OsdWindow = new Lang.Class({
                          { opacity: 0,
                            time: FADE_TIME,
                            transition: 'easeOutQuad',
-                           onComplete: Lang.bind(this, this._reset) });
+                           onComplete: Lang.bind(this, function() {
+                              this._reset();
+                              Meta.enable_unredirect_for_screen(global.screen);
+                           });
     },
 
     _reset: function() {
         this.actor.hide();
         this.setLabel(null);
         this.setLevel(null);
-        Meta.enable_unredirect_for_screen(global.screen);
     },
 
     _monitorsChanged: function() {